import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: () => import('../views/index/index.vue')
    },
	{
		path: '/index',
		component: () => import('../views/index/index.vue')
	  },
    {
      path: '/allcourse',
      name: 'allcourse',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/allcourse/index.vue')
    },
	{
		path: '/sousuo',
		name: 'sousuo',
		component: () => import('../views/sousuo/index.vue')
	},
	{
	  path: '/login',
	  name: 'login',
	  component: () => import('../views/login/index.vue')
	},
	{
	  path: '/register',
	  name: 'register',
	  component: () => import('../views/register/index.vue')
	},
	{
	  path: '/student',
	  name: 'student',
	  component: () => import('../views/student/index.vue')
	},
	{
	  path: '/teacher',
	  name: 'teacher',
	  component: () => import('../views/teacher/index.vue')
	},
	{
	  path: '/root',
	  name: 'root',
	  component: () => import('../views/root/index.vue')

	},{
		path: '/article',
		name: 'article',
		component: () => import('../views/article/index.vue')

	},
	{
		path: '/shijue',
		name: 'shijue',
		component: () => import('../views/shijue/index.vue')
	  },
	  {
		path: '/huihua',
		name: 'huihua',
		component: () => import('../views/huihua/index.vue')
	  },
	  {
		path: '/single',
		name: 'single',
		component: () => import('../views/single/index.vue')
	  },
	  {
		path: '/profile',
		name: 'profile',
		component: () => import('../views/profile/together.vue')

	  }
  ]
})
export default router
